
layui.use('upload', function () {
    var upload = layui.upload;
    //执行实例
    var uploadInst = upload.render({
        elem: '#test1', //绑定元素
        url: '/car/carInfo/uploadExcel', //上传接口
        size: 10000,
        accept: 'file',
        done: function (r) {
        	parent.layer.msg(r.msg);
            parent.reLoad();
			var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
			parent.layer.close(index);
        },
        error: function (r) {
            layer.msg(r.msg);
        }
    });
});